package com.ruoyi.web.controller.student;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.domain.BaerUserEq;
import com.ruoyi.domain.EquipmentInfo;
import com.ruoyi.service.BaseUserEqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userEq")
public class BaseUserEqController extends BaseController {

    @Autowired
    private BaseUserEqService baseUserEqService;

    @GetMapping("/queryUserInfo")
    public AjaxResult queryUserInfo(String loadingId, Long userId){
        BaerUserEq baerUserEq = baseUserEqService.queryUserInfo(userId,loadingId);

       return success(baerUserEq);
    }

    @GetMapping("/queryEquipmentInfo")
    public AjaxResult queryEquipmentInfo(String loadingId, Long equipmentid){
        EquipmentInfo equipmentInfo = baseUserEqService.queryEquipmentInfo(loadingId,equipmentid);

        return success(equipmentInfo);
    }

}
